﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CommentPost
{
    public class CommentsCollection
    {
        private static readonly CommentsCollection Collection = new CommentsCollection();
        private readonly List<Comment> _comments = new List<Comment>();
        
        public void AddResponse(Comment response)
        {
            _comments.Add(response);
        }

        public static CommentsCollection GetCommentsCollection()
        {
            return Collection;
        }

        public IEnumerable<Comment> GetAllComments()
        {
            return _comments;
        }
    }
}